package com.ctbri.gui;

import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JColorChooser;
import javax.swing.JFrame;

import com.ctbri.util.SwingConsole;

public class Ex29 extends JFrame {
	private JButton button = new JButton("button");
//	private JColorChooser colorChooser = new JColorChooser();
	public Ex29() {
		setLayout(new FlowLayout());
		add(button);
		button.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				JColorChooser.showDialog(Ex29.this, "Choose a color", Color.white);
			}
		});
	}
	public static void main(String[] args) {
		SwingConsole.run(new Ex29(), 100, 100);
	}

}
